package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the customerconsolidation database table.
 * 
 */
@Entity
@NamedQuery(name="Customerconsolidation.findAll", query="SELECT c FROM Customerconsolidation c")
public class Customerconsolidation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="cuct_id")
	private int cuctId;

	@Temporal(TemporalType.DATE)
	@Column(name="cuct_date")
	private Date cuctDate;

	@Column(name="cuct_desc")
	private String cuctDesc;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_from")
	private Customer customer1;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_now")
	private Customer customer2;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="cuct_huser")
	private User user1;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="cuct_user")
	private User user2;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="cuct_nuser")
	private User user3;

	public Customerconsolidation() {
	}

	public int getCuctId() {
		return this.cuctId;
	}

	public void setCuctId(int cuctId) {
		this.cuctId = cuctId;
	}

	public Date getCuctDate() {
		return this.cuctDate;
	}

	public void setCuctDate(Date cuctDate) {
		this.cuctDate = cuctDate;
	}

	public String getCuctDesc() {
		return this.cuctDesc;
	}

	public void setCuctDesc(String cuctDesc) {
		this.cuctDesc = cuctDesc;
	}

	public Customer getCustomer1() {
		return this.customer1;
	}

	public void setCustomer1(Customer customer1) {
		this.customer1 = customer1;
	}

	public Customer getCustomer2() {
		return this.customer2;
	}

	public void setCustomer2(Customer customer2) {
		this.customer2 = customer2;
	}

	public User getUser1() {
		return this.user1;
	}

	public void setUser1(User user1) {
		this.user1 = user1;
	}

	public User getUser2() {
		return this.user2;
	}

	public void setUser2(User user2) {
		this.user2 = user2;
	}

	public User getUser3() {
		return this.user3;
	}

	public void setUser3(User user3) {
		this.user3 = user3;
	}

}